#include "rjm32f10x.h"
#include "sys.h"
#include "gpio.h"

/* Delay() */
void delay_ms(uint32_t time)
{
	uint32_t i =0;
	while(time--)
	{
		i = 96000;  // delay 1ms
		while(i--);
	}
}

int main(void)
{
	system_init();  //时钟初始化  96MHZ
	gpio_init();

  while(1)
	{
		LED1 = 1;
		LED2 = 1;
		delay_ms(100);
		LED1 = 0;
		LED2 = 0;
		delay_ms(100);
	}
}
